<template>
  <div id="one">
    <h1>About组件</h1>
    <ul>
      <li v-for="(item,i) in setlists" :key="i">
        <span class="name">{{ item.name }}</span>
        <span class="price">￥{{ item.price }}</span>
      </li>
    </ul>
  </div>
</template>
  <script>
export default {
  computed:{
    lists(){
      return this.$store.state.lists
    },
     setlists(){
      return this.$store.getters.num
    }
  },
  data() {
    return {};
  },
  components: {}
};
</script>
<style lang="less">
#one {
  background: #fff8b1;
  box-shadow: 1px 2px 3px rgba(0, 0, 0, 0.2);
  margin-bottom: 30px;
  padding: 10px 20px;
}
#one ul {
  padding: 0;
}
#one li {
  display: inline-block;
  margin-right: 10px;
  margin-top: 10px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.7);
}
.price {
  font-weight: bold;
  color: #e8800c;
}
</style>
